﻿<?php
include('header.php');
if(!$is_online){
	redirect('index.php');
	exit;
}
?>
<div class="block medium right">
			<div class="top">
					<h1>Buy Coins</h1> 
            </div>
			<div class="content"><br />		
<?
  $sql = $db->Query("SELECT id,coins,price FROM `c_pack` ORDER BY `id` ASC");
  $packs = $db->FetchArrayAll($sql);
  foreach($packs as $pack)
{
?>
<div class="purchase">
<div class="purchase-hdr"><?=$pack['coins']?> Coins - $<?=$pack['price']?></div>
<a href="<?=$site['site_url']?>/pages/go_paypal.php?t=c&id=<?=$pack['id']?>" target="_blank"><img src="<?=$site['site_url']?>/img/paypal.png" alt="PayPal" border="0" /></a>
</div>
<?}?>	
		</div>
	</div>
<?include('footer.php');?>